<%= render 'public/flash_notice' %>

<div class="row">
  <ol class="breadcrumb">
    <li>后台</li>
    <li>Banner管理</li>
  </ol>

  <ul class="nav nav-tabs">
    <li class="active"><a href="#index" data-toggle="tab">首页</a></li>
    <li><a href="#post" data-toggle="tab">新闻</a></li>
    <li><a href="#job" data-toggle="tab">招聘</a></li>
    <li><a href="#product" data-toggle="tab">产品</a></li>
    <li><a href="#description" data-toggle="tab">公司简介</a></li>
    <li><a href="#service" data-toggle="tab">服务介绍</a></li>
    <li><a href="#customer" data-toggle="tab">客户服务</a></li>
    <li><a href="#partner" data-toggle="tab">合作伙伴</a></li>
    <li><a href="#contact" data-toggle="tab">联系我们</a></li>
    <li class="btn-banner-upload">
      <%= link_to '', new_cpanel_banner_path, class: 'icon-upload-alt' %>
    </li>
  </ul>

  <div class="tab-content tab-banner">
    <div class="tab-pane active" id="index">
      <ul>
      <%= render partial: 'banner', collection: @index_banners, as: :banner %>
      </ul>
    </div>
    <div class="tab-pane" id="post">
      <ul>
        <%= render partial: 'banner', collection: @post_banners, as: :banner %>
      </ul>
    </div>
    <div class="tab-pane" id="job">
      <ul>
        <%= render partial: 'banner', collection: @job_banners, as: :banner %>
      </ul>
    </div>
    <div class="tab-pane" id="product">
      <ul>
        <%= render partial: 'banner', collection: @product_banners, as: :banner %>
      </ul>
    </div>
    <div class="tab-pane" id="description">
      <ul>
        <%= render partial: 'banner', collection: @description_banners, as: :banner %>
      </ul>
    </div>
    <div class="tab-pane" id="service">
      <ul>
        <%= render partial: 'banner', collection: @service_banners, as: :banner %>
      </ul>
    </div>
    <div class="tab-pane" id="customer">
      <ul>
        <%= render partial: 'banner', collection: @customer_banners, as: :banner %>
      </ul>
    </div>
    <div class="tab-pane" id="partner">
      <ul>
        <%= render partial: 'banner', collection: @partner_banners, as: :banner %>
      </ul>
    </div>

    <div class="tab-pane" id="contact">
      <ul>
        <%= render partial: 'banner', collection: @contact_banners, as: :banner %>
      </ul>
    </div>
  </div>
</div>

